app.register.controller('entrance',function($scope, $rootScope, $routeParams) {
    function show(tag) {
        var light = document.getElementById(tag);
        var fade = document.getElementById('fade');
        light.style.display = 'block';
        fade.style.display = 'block';
    }

    function hide(tag) {
        var light = document.getElementById(tag);
        var fade = document.getElementById('fade');
        light.style.display = 'none';
        fade.style.display = 'none';
    }

    //新增

    $scope["light"] = false;
    $scope["light2"] = false;

    $scope.show = function(element){
        $scope[element]=true;
        console.log($scope);
    }

    $scope.hide = function(element){
        $scope[element]=false;
        console.log($scope);
    }
})